/*
import 'package:flutter/material.dart';
import 'package:flutter_map/flutter_map.dart';
import 'package:latlong/latlong.dart';

import 'gmapHelper.dart';


class MyMap extends StatefulWidget {
  @override
  MyMap(
      {LatLng location,
      double zoom,
      List<LayerOptions> layers,
}) {
    this.Layers = layers ?? new List<LayerOptions>();
    this.Location = location ?? new LatLng(31.03, 103.5);
    this.Zoom = zoom ?? 12.0;

  }

  List<LayerOptions> Layers;
  bool IfReLocation;
  LatLng Location;
  double Zoom;

  @override
  MyMapState createState() => new MyMapState();
}

class MyMapState extends State<MyMap> {
  LatLng location;
  List<LayerOptions> netLayers;
  List<LayerOptions> allLayers;

  @override
  initState() {
    location = widget.Location;
    
    super.initState();
getLayers();
  }
  void getLayers(){
    var _layers=_loadLayer();
    setState(() {
      allLayers=_layers;
    });
  }

  List<LayerOptions> _loadLayer() {
    var _layers = GMapHelper.NewLayerList();
    _layers.add(GMapHelper.TileGooleMap());
    _layers.add(GMapHelper.MarkerLayer(widget.Location,Icons.location_on,Colors.blue));
    
    return _layers;
  }

  @override
  Widget build(BuildContext context) {
    
    return Container(
      child: new Center(
        child: new FlutterMap(
          options: new MapOptions(
            center: location,
            zoom: widget.Zoom,
          ),
          layers:allLayers,
        ),
      ),
    );
  }




  
}
*/